<?php
$testJSON=array('name'=>'中文字符串','value'=>'1');
//echo json_encode($testJSON);
$testJSON=ReturnUrlencode($testJSON);

/**
 * [ReturnUrlencode 用递归的方式来遍历全部的数组而且解析]
 * @param [type] $arr [description]
 */
function ReturnUrlencode($arr){
    foreach ($arr as $key => $value){
        if(is_array($value)){
            $arr[$key]=ReturnUrlencode($value);
        }else{
            $arr[$key]=urlencode($value);
        }
    }
    return $arr;
}


print_r(urldecode ( json_encode ( $testJSON ) ) );